{
  "type": "object",
  "required": ["title", "state", "confidence", "severity", "report_type", "project", "author_id"],
  "properties": {
    "title": {
      "type": "string"
    },
    "description": { "type": ["string", "null"] },
    "state": { "type": "string", "enum": ["detected", "resolved", "dismissed", "confirmed"] },
    "severity": {
      "type": "string",
      "enum": ["info", "unknown", "low", "medium", "high", "critical"]
    },
    "confidence": {
      "type": "string",
      "enum": ["ignore", "unknown", "experimental", "low", "medium", "high", "confirmed"]
    },
    "report_type": {
      "type": "string",
      "enum": [
        "sast",
        "dependency_scanning",
        "container_scanning",
        "dast"
      ]
    },
    "project": {
      "oneOf": [
        { "$ref": "../../../../../../../spec/fixtures/api/schemas/public_api/v4/project/identity.json" }
      ]
    },
    "author_id": { "type": "integer" },
    "updated_by_id": { "type": ["integer", "null"] },
    "last_edited_by_id": { "type": ["integer", "null"] },
    "resolved_by_id": { "type": ["integer", "null"] },
    "dismissed_by_id": { "type": ["integer", "null"] },
    "confirmed_by_id": { "type": ["integer", "null"] },
    "closed_by_id": { "type": ["integer", "null"] },
    "start_date": { "type": ["string", "null"], "format": "date-time" },
    "due_date": { "type": ["string", "null"], "format": "date-time" },
    "created_at": { "type": "string", "format": "date-time" },
    "updated_at": { "type": "string", "format": "date-time" },
    "last_edited_at": { "type": ["string", "null"], "format": "date-time" },
    "resolved_at": { "type": ["string", "null"], "format": "date-time" },
    "dismissed_at": { "type": ["string", "null"], "format": "date-time" },
    "confirmed_at": { "type": ["string", "null"], "format": "date-time" },
    "closed_at": { "type": "string", "format": "date-time" }
  }
}
